package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {
     void addDish(DishDTO dishDTO);

     PageResult dishQuery(DishPageQueryDTO dishPageQueryDTO);

     void deletedDishsById(List<Long> ids);

     DishVO getDishByID(Long id);

     void updateDish(DishDTO dishDTO);

     void dishStartOrStop(Integer status,Long id);

     List<Dish> queryByList(Long categoryId);
     /**
      * 条件查询菜品和口味
      * @param dish
      * @return
      */
     List<DishVO> listWithFlavor(Dish dish);
}
